package org.MobileSales.Client;

public abstract class ServiceClientBase {

	private Configuration configuration;
	
	public ServiceClientBase(Configuration configuration) {
		this.configuration = configuration;
	}
	
	protected Configuration getConfiguration() {
		return configuration;
	}
	
	protected String getMethodURL() {
		String mName = Thread.currentThread().getStackTrace()[2].getMethodName();;
		mName = mName.substring(0,1).toUpperCase() + mName.substring(1);
		return configuration.getServiceURL() + "/" + mName;
	}
}
